from django.contrib.sites.models import Site
from django.core.urlresolvers import reverse
from mhlandscaping.apps.service.models import Service
from django.db import models

class Layout(models.Model):
    small_item_1 = models.ForeignKey(Service, related_name='small_item_1_service')
    small_item_2 = models.ForeignKey(Service, related_name='small_item_2_service')
    small_item_3 = models.ForeignKey(Service, related_name='small_item_3_service')
    small_item_4 = models.ForeignKey(Service, related_name='small_item_4_service')
    small_item_5 = models.ForeignKey(Service, related_name='small_item_5_service')
    large_item_1 = models.ForeignKey(Service, related_name='large_item_1_service')
    large_item_2 = models.ForeignKey(Service, related_name='large_item_2_service')
    welcome_copy = models.TextField()

    @models.permalink
    def get_absolute_url(self):
        return ('home', (), {})
    
    def __unicode__(self):
        return str('Layout')